<?php
$this->breadcrumbs=array(
	'Folders'=>array('admin'),
	'Manage',
);


Yii::app()->clientScript->registerScript('search', "
$('.search-button').click(function(){
	$('.search-form').toggle();
	return false;
});
$('.search-form form').submit(function(){
	$.fn.yiiGridView.update('folder-grid', {
		data: $(this).serialize()
	});
	return false;
});
");
?>

<h1>Manage Folders</h1>


<?php $this->widget('bootstrap.widgets.BootGridView', array(
	'type'=>'striped',
	'id'=>'folder-grid',
	'dataProvider'=>$model->search($user_id),
	'filter'=>$model,
	'columns'=>array(
		'id',
		array(
			'name' => 'name',
			'value' => 'CHtml::link("$data->name",Yii::app() ->createUrl("folder/view",array("id"=>$data->id)));',
			'type'=>'raw',
		),
		'svn_url',
		'path',
		array(
			'class'=>'bootstrap.widgets.BootButtonColumn',
		),
	),
)); ?>
